# # 类的成员方法
# class Stuednt:
#     name = None
#
#     def say_hello(self):
#         print(f'Hello, {self.name} ')
#     def say_hi2(self,msg):
#         print(f'hello,{self.name},{msg}')
# stu = Stuednt()
# stu.name = 'dusk_lin'
# stu.say_hello()
# stu2 = Stuednt()
# stu2.name = 'dusk_sen'
# stu2.say_hi2('有何贵干')


# # 构造方法
# class Stuednt:
#     name = None
#     age = None
#     tel = None
#
#     def __init__(self, name, age, tel):
#         self.name = name
#         self.age = age
#         self.tel = tel
#         print('student类创建了一个类对象')
#
# stu = Stuednt('dusk_lin',22,'23044778121')
# print(stu.name)
# print(stu.age)
# print(stu.tel)



# # 练习
# class Phone:
#     __is_5g__enable = False
#     def __check_by_5g(self):
#         if self.__is_5g__enable:
#             print('5g开启')
#         else:
#             print('5g关闭，使用4g网络')
#
#     def call_by_5g(self):
#         self.__check_by_5g()
#         print('calling')
# phone = Phone()
# phone.call_by_5g()



# # 继承
# class Phone:
#     IMEI = None
#     producer = 'ITPS'
#
#     def call_by_5g(self):
#         print('call_by_5g')
#
# class NFCReader:
#     nfc_type = '第五代'
#     producer = 'HM'
#
#     def read_card(self):
#         print('read_card')
#     def write_card(self):
#         print('write_card')
# class RemoteControl:
#     rc_type = '红外遥控'
#
#     def control(self):
#         print('红外遥控开启')
#
# class myphone(Phone, NFCReader, RemoteControl):
#     producer = 'ITHEIMA'
#     def call_by_5g(self):
#         print(f'{Phone.producer}')
#         print(f'{super().producer}')
#         super().call_by_5g()
#         print(f'关闭cpu单核模式')
#
#
# phone = myphone()
# phone.call_by_5g()
# phone.read_card()
# phone.write_card()
# phone.control()
#



# class animal():
#     def speak(self):
#         pass
# class Dog(animal):
#     def speak(self):
#         print('汪汪汪')
# class Cat(animal):
#     def speak(self):
#         print('喵喵喵')
#
# def make_noise(animal):
#     animal.speak()
#
# dog = Dog()
# cat = Cat()
#
# make_noise(dog)
# make_noise(cat)




# 数据分析案例
